package com.fingard.dsp.bank.reqrespobj.foreignexchange.detail;

import com.fingard.xml.XElement;

/**
 * Created by F on 2018/11/19.
 */
public class ReqFX01Detail {
    public String askNumber;// 支付流水号
    //1-近期  2-远期  3-掉期
    public String tranType;//    交易方式
    public String ceiforexNo;//    null
    public String accountNo;//   付方行号
    public String payCryType;//  付方币种
    public String rcvAcc;//      收方账号
    public String rcvCryType;//  收方币种
    //0-买入 1-卖出
    public String businessType;//  买卖标识

    public String incryType;// 买入币种
    public String buyAmt;//    买入金额
    public String outcryType;//  卖出币种
    public String sellAmt;//   卖出金额
    public String tranDate;//  预约日期
    public String deliDate;//  交易日期
    public String sexcRate;//  近期汇率
    public String forwdRate;//  远期汇率
    public String memo;//    备注
    public String ceiforexNumber;//       null

    public String nsetlDate;// 掉期近端处理日期
    public String nType;//     掉期买卖标识
    public String nincryType;// 近端买入币种
    public String ninAmt;//     近端买入金额   null
    public String nexcRate;//   掉期近端汇率
    public String noutcryType;//  掉期卖出币种
    public String noutAmt;//    掉期卖出金额   null
    public String nrcvAcc;//  近端收方账户    null
    public String nrcvcType;// 近端收方币种     null
    public String npayAcc;//   近端付方币种    null
    public String npaycryType;//  近端付方币种  null

    public String fsetlDate;//  掉期远端处理日期
    public String fType;//      掉期远端买卖标识
    public String fincryType;// 掉期远端买入币种
    public String finAmt;//     掉期远端买入金额
    public String fexcRate;//   掉期远端汇率
    public String foutcryType;// 掉期远端卖出币种
    public String foutAmt;//    掉期远端卖出金额
    public String frcvAcc;//    掉期远端收方账号
    public String frcvcryType;//  掉期远端收方币种
    public String fpayAcc;//      掉期远端付方账户
    public String fpaycryType;//  掉期远端付方账号币种

    public XElement srcXElement;
    public String transType;

    public ReqFX01Detail(XElement p_xelement, String p_transType, String p_bankCode) throws Exception {
        srcXElement = p_xelement;
        transType = p_transType;

        askNumber = p_xelement.getSingleText("ReqSeqID");
        tranType = p_xelement.getSingleText("tranType");
        ceiforexNo = p_xelement.getSingleText("ceiforexNo");
        accountNo = p_xelement.getSingleText("accountNo");
        payCryType = p_xelement.getSingleText("payCryType");
        rcvAcc = p_xelement.getSingleText("rcvAcc");
        rcvCryType = p_xelement.getSingleText("rcvCryType");
        businessType = p_xelement.getSingleText("businessType");

        incryType = p_xelement.getSingleText("incryType");
        buyAmt = p_xelement.getSingleText("buyAmt");
        outcryType = p_xelement.getSingleText("outcryType");
        sellAmt = p_xelement.getSingleText("sellAmt");
        tranDate = p_xelement.getSingleText("tranDate");
        deliDate = p_xelement.getSingleText("deliDate");
        sexcRate = p_xelement.getSingleText("sexcRate");
        forwdRate = p_xelement.getSingleText("forwdRate");
        memo = p_xelement.getSingleText("memo");
        ceiforexNumber = p_xelement.getSingleText("ceiforexNumber");

        nsetlDate = p_xelement.getSingleText("nsetlDate");
        nType =p_xelement.getSingleText("nType");
        nincryType = p_xelement.getSingleText("nincryType");
        ninAmt = p_xelement.getSingleText("ninAmt");
        nexcRate = p_xelement.getSingleText("nexcRate");
        noutcryType = p_xelement.getSingleText("noutcryType");
        noutAmt = p_xelement.getSingleText("noutAmt");
        nrcvAcc = p_xelement.getSingleText("nrcvAcc");
        nrcvcType = p_xelement.getSingleText("nrcvcType");
        npayAcc = p_xelement.getSingleText("npayAcc");
        npaycryType = p_xelement.getSingleText("npaycryType");

        fsetlDate = p_xelement.getSingleText("fsetlDate");
        fType = p_xelement.getSingleText("fType");
        fincryType = p_xelement.getSingleText("fincryType");
        finAmt = p_xelement.getSingleText("finAmt");
        fexcRate = p_xelement.getSingleText("fexcRate");
        foutcryType = p_xelement.getSingleText("foutcryType");
        foutAmt = p_xelement.getSingleText("foutAmt");
        frcvAcc = p_xelement.getSingleText("frcvAcc");
        frcvcryType = p_xelement.getSingleText("frcvcryType");
        fpayAcc = p_xelement.getSingleText("fpayAcc");
        fpaycryType = p_xelement.getSingleText("fpaycryType");
    }


}
